Note: in Windows 8.1, powershell execution poliy is defaulted to
Restricted (you can view your current execution policy using cmd get-executonpolicy). To run scripts: change your PS execution policy to
unrestricted using cmd
Set-Executionpolicy –Executionpolicy unrestricted. It is recommended to revert it back to
Restricted after running the script. (See
about_Execution_Policies for more information.